package com.itheima.ai.entity.query;

import lombok.Data;
import org.springframework.ai.tool.annotation.ToolParam;
import java.util.List;

//学科表
@Data
public class CourseQuery {
    //@ToolParam 解释Function参数的注解，其中的信息都会通过提示词的方式发送给AI模型
    @ToolParam(required = false, description = "学科类型：编程、设计、自媒体、其它")
    private String type;
    @ToolParam(required = false, description = "学历要求：0-无、1-初中、2-高中、3-大专、4-本科及本科以上")
    private Integer edu;
    @ToolParam(required = false, description = "学科：跨境电商、新媒体运营、其他")
    private String name;
//    @ToolParam(required = false, description = "学科价格：单位:人民币")
//    private String price;
//    @ToolParam(required = false, description = "学科学习时长：单位:天")
//    private String duration;

    @ToolParam(required = false, description = "排序方式")
    private List<Sort> sorts;

    @Data
    public static class Sort {
        @ToolParam(required = false, description = "排序字段: price或duration")
        private String field;
        @ToolParam(required = false, description = "是否是升序: true/false")
        private Boolean asc;
    }
}
